package com.hele.sts.helper;

import java.io.InputStream;
import java.util.Properties;

public class Config
{
  public static String WEBDOC_HTTP = "";
  public static String WEBDOC_HTTPS = "";
  public static String DZDA_ADDR = "";
  
  static
  {
    Properties props = new Properties();
    InputStream is = null;
    try
    {
      is = Config.class.getClassLoader().getResourceAsStream("config.properties");
      props.load(is);
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
    try
    {
      WEBDOC_HTTP = props.getProperty("WEBDOC_HTTP");
      WEBDOC_HTTPS = props.getProperty("WEBDOC_HTTPS");
      DZDA_ADDR = props.getProperty("dzda_addr");
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }
}
